package org.stbernardpreserve.learning.effectivejava.mutator;

public class ELaundryMessage {
	static enum ELaundryMessageType {
		ItemNoLongerAvailable,
		PromotionalItem,
		NewsItem
	}
	private final String text;
	private final ELaundryMessageType messageType;
	
	private ELaundryMessage(String text, ELaundryMessageType messageType)
	{
		this.text = text;
		this.messageType = messageType;
	}
	
	public static ELaundryMessage valueOf(String text, ELaundryMessageType messageType)
	{
		return new ELaundryMessage(text, messageType);
	}
	
	public String getText()
	{
		return text;
	}
	
	public ELaundryMessageType getMessageType()
	{
		return messageType;
	}
	

}
